//
//  MSHeroManager.h
//  MagicSword
//
//  Created by Netease on 15/11/16.
//  Copyright © 2015年 Jonear. All rights reserved.
//

#import <SpriteKit/SpriteKit.h>
#import "MSHeroInfo.h"

@interface MSHeroManager : NSObject

+ (id)shareManager;

+ (MSHeroInfo *)createHeroWithModel:(MSHeroModel)model;
+ (MSHeroInfo *)createHeroWithModel:(MSHeroModel)model WithOldInfo:(MSHeroInfo *)oldInfo;
+ (NSString *)getProfessionName:(MSHeroProfession)pro level:(NSInteger)level;

@property (strong, nonatomic) NSMutableArray *heroArray;

- (void)saveHeroArray;
- (NSArray *)getAllUserHeroArray;
- (NSArray *)getFightingHeroArray;

// 卸载背包
- (BOOL)removeHeroWeapon:(MSHeroInfo *)hero weapon:(MSWeaponInfo *)weapon;
// 增加
- (BOOL)addHeroWeapon:(MSHeroInfo *)hero weapon:(MSWeaponInfo *)weapon;

@end
